package com.hd.pzhwlxt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.pzhwlxt.mapper.VehicleRepairMaterialInfoMapper;
import com.hd.pzhwlxt.pojo.VehicleRepairMaterialInfo;
import com.hd.pzhwlxt.service.VehicleRepairMaterialInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
@create: 2022-09-21 9:02
@author: 怀念天空
@Description: 
*/

@Service
public class VehicleRepairMaterialInfoServiceImpl extends ServiceImpl<VehicleRepairMaterialInfoMapper, VehicleRepairMaterialInfo> implements VehicleRepairMaterialInfoService{
    @Autowired
    private VehicleRepairMaterialInfoMapper vehicleRepairMaterialInfoMapper;

    @Override
    public List<VehicleRepairMaterialInfo> getAllInfo() {
        return vehicleRepairMaterialInfoMapper.getAllInfo();
    }

    @Override
    public Page<VehicleRepairMaterialInfo> getAllInfoPage(Integer pageNum, Integer pageSize) {
        return vehicleRepairMaterialInfoMapper.getAllInfoPage(new Page<>(pageNum,pageSize));
    }

    @Override
    public VehicleRepairMaterialInfo getInfoById(Integer id) {
        return vehicleRepairMaterialInfoMapper.getInfoById(id);
    }
}
